import { Context, ContextConfig } from "./contest";

export class EnvironmentContext extends Context {
    public exited: boolean = false;
    public rootPath: string = "";
    public currentPath: string = "";

    update(config: {} & ContextConfig) {
        super.update(config);
    }
    getData() {
        const superDate = super.getData();
        return {
            ...superDate
        };
    }
    reset() {
        super.reset();
    }
    exit() {
        this.exited = true;
    }
    changeDirectory(path: string) {
        console.log(path);
    }
}
